# Config file for 7-segment Gear Indicator project with rev meter.
#
# Rest of a line after the pound (#) is ignored.

# Output a sequence of gears received from lfs to the screen
# -- 1 or 0, i.e. yes or no
Debug 0

# IP address and port to listen on.
IP 127.0.0.1
Port 11111

# LPT port (must be in base 16)
# 0x378 or 0x3BC for LPT 1, check "Device Manager" in Windows
LPT 0x378

# What to display for particular gear:
#      reverse, Neutral, 1, 2, 3,  4,  5,  6,  7,  8
Seg_N  80       84       6  91 79  102 109 125 7   127
# The numbers above will be correct if you wire pin 2 to segment a, pin3 to segment b etc.
# where:    a 
#          ---
#        f|   |b
#          -g-
#        e|   |c
#          ---
#	    d

# What to send to turn all standard pin leds off (pins 2 to 9), usually 0 or 255
Seg_Off 0

# How fast to blink gear shift indicator, when rpm limiter is on.
# The time is in miliseconds.
Blink_time 200

# When to turn the low fuel indicator on, in percentage, 0 -- 100
# i. e. 0=never, 100=always
Fuel_warning 8

##############
#Extended pins
##############
# Possible functions are:
#          low_fuel, shift_light, traction_control, signal_lights, handbrake, rpm_limiter
#          redline, rpm1, rpm2, rpm3, rpm4, rpm5, braking_lights, reverse_lights, engine_running, none
#
# The "none" function means no function for the pin.
# The second argument should be 1 if the selected function should be inverted,
# e.g. your diodes are behind ULN 2803. Othervise it should be 0 for
# noninverted behaviour.
#
# Notice, that shift_light is already on the datapins, so usually it's
# not needed here.

PIN_1  rpm1             1
PIN_14 rpm2             1

# pin number 16 on DB25 connector is pin number 31 on the centronics
# Notice, that this pin is inverted in the port.
PIN_16 rpm3       0

# pin number 17 on DB25 connector is pin number 36 on the centronics
PIN_17 rpm4              1

# pin number 9 is part of the standard (not extended) pin set so does not usually need inverting.
PIN_9  rpm5              0

# What to send to turn all leds on extended pins off, usually 4 or 11,
# because PIN_16 is inverted.
# PIN_1 is bit 0, PIN_14 is bit 1, PIN_16 is bit 2, PIN_17 is bit 3
Ext_pins_off 11

